<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello vue</title>
    <link rel="stylesheet" type="text/css" href="../aui/css/aui.2.0.css" />
</head>
<body>
    <div class="aui-content" id="app">
        {{ msg }}
        <p v-if="seen">Now you see me</p>

        <ol>
            <li v-for="vo in list">
                {{ vo.text }}
            </li>
        </ol>
        <button @click="clickme()">点击我</button><br/>

        <input  v-model="msg">
    </div>
</body>
<script type="text/javascript" src="vue2.1.js"></script>
<script>
    var vm = new Vue({
        el: '#app',//vue对象的作用域
        data: {
            msg: 'hello vue',//{{}}插值的形式
            seen: '',
            list: [
                { text: 'Learn JavaScript' },
                { text: 'Learn Vue' },
                { text: 'Build something awesome' }
            ]
        },
        methods: {
            clickme: function () {
                console.log('点击了我');
            }
        }

    });

    //ajax {msg: vm.msg} {mobile: vm.mobile}
</script>

